﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="QuanLyDiaDiem.aspx.cs" Inherits="FastDeal.QuanLyDiaDiem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        Quản Lý địa điểm</p>
    <p>
        &nbsp;</p>
    <p>
    <asp:GridView ID="gvDSDiaDiem" runat="server" AutoGenerateColumns="False" 
        CellPadding="3" 
        Height="212px" 
        Width="455px" 
        GridLines="None" BackColor="White" BorderColor="White" BorderStyle="Ridge" 
        BorderWidth="2px" CellSpacing="1" onrowdeleting="gvDSDiaDiem_RowDeleting" 
        onselectedindexchanged="gvDSDiaDiem_SelectedIndexChanged" 
        DataKeyNames="MaDiaDiem" onrowcancelingedit="gvDSDiaDiem_RowCancelingEdit" 
        onrowediting="gvDSDiaDiem_RowEditing" 
        onrowupdating="gvDSDiaDiem_RowUpdating">
        <Columns>
            <asp:TemplateField HeaderText="Mã Địa Điểm">
                <EditItemTemplate>
                    <asp:Label ID="lbMaDiaDiem" runat="server" Text='<%# Bind("MaDiaDiem") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbMaDiaDiem0" runat="server" Text='<%# Bind("MaDiaDiem") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên Địa Điểm">
                <EditItemTemplate>
                    <asp:TextBox ID="txtTenDiaDiem" runat="server" Text='<%# Bind("TenDiaDiem") %>' 
                        Width="<%# 100 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbTenDD" runat="server" Text='<%# Bind("TenDiaDiem") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="300px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Nhà">
                <EditItemTemplate>
                    <asp:TextBox ID="txtSoNha" runat="server" Text='<%# Bind("SoNha") %>' 
                        Width="<%# 50 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbSoNha" runat="server" Text='<%# Bind("SoNha") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên Đường">
                <EditItemTemplate>
                    <asp:TextBox ID="txtTenDuong" runat="server" Text='<%# Bind("TenDuong") %>' 
                        Width="<%# 50 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbTenDuong" runat="server" Text='<%# Bind("TenDuong") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Phường">
                <EditItemTemplate>
                    <asp:TextBox ID="txtPhuong" runat="server" Text='<%# Bind("Phuong") %>' 
                        Width="<%# 60 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbPhuong" runat="server" Text='<%# Bind("Phuong") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Quận">
                <EditItemTemplate>
                    <asp:TextBox ID="txtQuan" runat="server" Text='<%# Bind("Quan") %>' 
                        Width="<%# 30 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbQuan" runat="server" Text='<%# Bind("Quan") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Địa Phương">
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlDiaPhuong" runat="server">
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbDiaPhuong" runat="server" Text='<%# Bind("TenDiaPhuong") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Điện Thoại">
                <EditItemTemplate>
                    <asp:TextBox ID="txtDienThoai" runat="server" Text='<%# Bind("DienThoai") %>' 
                        Width="<%# 80 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbDienThoai" runat="server" Text='<%# Bind("DienThoai") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Kinh Độ">
                <EditItemTemplate>
                    <asp:TextBox ID="txtKinhDo" runat="server" Text='<%# Bind("KinhDo") %>' 
                        Width="<%# 30 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbKinhDo" runat="server" Text='<%# Bind("KinhDo") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Vĩ Độ">
                <EditItemTemplate>
                    <asp:TextBox ID="txtViDo" runat="server" Text='<%# Bind("KinhDo") %>' 
                        Width="<%# 30 %>"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lbViDo" runat="server" Text='<%# Bind("ViDo") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="40px" />
            </asp:TemplateField>
            <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Image/Delete.png" 
                ShowDeleteButton="True" >
            <ItemStyle Width="30px" />
            </asp:CommandField>
            <asp:CommandField ButtonType="Image" CancelImageUrl="~/Image/cancel.png" 
                EditImageUrl="~/Image/edit.jpg" ShowEditButton="True" 
                UpdateImageUrl="~/Image/update.png" >
            <ItemStyle Width="30px" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />
    </asp:GridView>
    </p>
    <p>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnThem" runat="server" CssClass="green button" Height="32px" 
            onclick="btnThem_Click" Text="Thêm Địa Điểm Mới" Width="147px" />
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
